package generators;

import java.util.Random;

import fw.ApplicationManager;



import objects.User;
import testBase.TestBase;

public class UserDataGenerator extends TestBase{
	
	private Random rnd = new Random();
	
	
	public UserDataGenerator(ApplicationManager manager) {
		super();
	}


	public User generateRandomUser() { 
		
		User user = new User()
						.setEmail("testEmail" + rnd.nextInt(100) + "@mail.ru")
							.setName("testUser" + rnd.nextInt(100))
								.setRole("" + rnd.nextInt(2));
									
		return user;
	}
	
	public User generateRandomEmailAndRole() {
			User user = new User()
							.setEmail("testEmail" + rnd.nextInt(100) + "@mail.ru")
								.setRole("" + rnd.nextInt(2));
		return user;
	}

}
